<!---总览页面真实内容-->
<template>
  <div class="ele-body">
    <a-tabs default-active-key="1" @change="callbackActivityTab">
      <a-tab-pane key="1" tab="数据监控">
        <device-sink-monitor :data="data" />
      </a-tab-pane>

      <a-tab-pane key="2" tab="控制面板">
        <device-sink-control-panel :data="data" />
      </a-tab-pane>

      <a-tab-pane key="3" tab="实时数据">
        <device-sink-data :data="data" />
      </a-tab-pane>

      <a-tab-pane key="4" tab="告警数据">
        <device-sink-warn-data :data="data" />
      </a-tab-pane>

      <a-tab-pane key="5" tab="其他配置">
        <device-sink-config-other :data="data" />
      </a-tab-pane>

      <a-tab-pane key="6" tab="配置历史">
        <device-sink-config-log :data="data" />
      </a-tab-pane>

      <a-tab-pane key="7" tab="推送情况">
        <device-sink-config-queue :data="data" />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script>
import DeviceSinkMonitor from './sink-monitor.vue';
import DeviceSinkData from './sink-data.vue';
import DeviceSinkWarnData from './sink-warn-data.vue';
import DeviceSinkConfigQueue from './sink-config-queue.vue'
import DeviceSinkConfigLog from './sink-config-log.vue'
import DeviceSinkConfigOther from './sink-config-other.vue'
import DeviceSinkControlPanel from './sink-control-panel.vue'

export default {
  name: 'DeviceSink',
  components: {
    DeviceSinkConfigQueue,
    DeviceSinkMonitor,
    DeviceSinkData,
    DeviceSinkWarnData,
    DeviceSinkConfigLog,
    DeviceSinkConfigOther,
    DeviceSinkControlPanel
  },
  props: {
    data: Object
  },
  data() {
    return {


    };
  },
  methods: {
    callbackActivityTab (index) {
      console.log(index)
    },
  }
};
</script>
